/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Modellayer;
import java.io.*;
import java.util.ArrayList;

/**
 *
 * @author bruhn
 */
public class ProductCollection implements Serializable
{
    private ArrayList<Product> productList;
    private static ProductCollection instance = new ProductCollection();

	public ProductCollection()
	{
		productList = new ArrayList<Product>();
	}

	public static ProductCollection getInstance()
	{
                return instance;
	}

        public void addProduct(Product product)
        {
            productList.add(product);
        }

        public void removeProduct(Product product)
        {
            productList.remove(product);
        }
}
